#!/bin/bash
cd ~/xr806_openharmony
pip install prompt_toolkit==1.0.14

cd build/lite
python setup.py install --user
cd -

echo 'export PATH=$PATH:~/.local/bin' | tee -a ~/.bashrc # 将hb命令所在目录加到PATH环境变量
source ~/.bashrc # 生效环境变量

hb -h
if [ "$?" == "0" ]; then
    echo "================================"
    echo "The hb command install done!"
    echo "You can use follow command to setup your target platform:"
    echo "  hb set"
    echo
    echo "You can use follow command to build your OpenHarmony code:"
    echo "  hb build [-f]"
    echo
    echo "Enjoy!"
fi
